package com.yishusmt.mobsmt.controller;

import com.yishusmt.mobsmt.dto.base.Result;
import com.yishusmt.mobsmt.enums.ResultCodeEnum;
import com.yishusmt.mobsmt.utils.TipsUtil;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试连接
 *
 * @author zhangyi
 * @date 2018/8/17 15:48
 */
@RestController
@RequestMapping("/test")
public class TestConnectionController {


    @GetMapping("/con")
    @ApiOperation("测试数据")
    public Result con(){
        return TipsUtil.returnTips(ResultCodeEnum.OPERATION_SUCCESS,"连接成功！");
    }
}
